<script src="modules/dataCount/echart3.js"></script>
<div ms-controller="dataCount" class="dataCount">
	<div class="mainTop">
		<h1 class="title" ms-if="currentIndex === 0">实时分析</h1>
		<h1 class="title" ms-if="currentIndex === 1">注册统计</h1>
		<h1 class="title" ms-if="currentIndex === 2">用户统计</h1>
	</div>
	<div class="dataTop clearfix div_block" id="tab0">
		<div class="dataMainTitle">
			<ul>
				<li class="tabCurrent" ms-click="toggle(0)">实时分析</li>
				<li ms-click="toggle(1)" >注册统计</li>
				<li ms-click="toggle(2)" >用户统计</li>
			</ul>
		</div>		
	</div>
	
	<div class="dataContent ms-tabs" id="tab0" ms-if="currentIndex === 0">
	   	<div class="dataMain">
	   		<div class="dataLeft">
	   			<div class="leftMain">
	   				<h3>今日下载数量</h3>
	   				<!--<div id="hello3" class="laydate-icon" style="display: none;"></div>-->
	   				<span>{{today}}</span>
	   				<!--<span class="leftLast">昨日全天0</span>-->
	   			</div>
	   		</div>
	   		<div class="dataRight">
	   			<div class="rightMain">
	   				<h3>今日用户数量</h3>
	   				<span>{{user}}</span>
	   				<!--<span class="leftLast">昨日全天0</span>-->
	   			</div>
	   		</div>
	   	</div>
	   	<div class="dataPicture" style="position: relative;">
           <h1>注册数量
          <!-- <div class="selectTime">-->
	           	<span class="timerf">时间范围</span>
	           	<input type="text" placeholder="2016-05-09" class="ipt" onclick="laydate()" class="inputSize"  readonly="readonly" ms-duplex="startDate">
	           	<span>至</span>
	           	<input type="text" placeholder="2016-05-09" class="ipt" onclick="laydate()" class="inputSize"  readonly="readonly" ms-duplex="endDate">
	           	<button ms-click="RegsiterList">查询</button>
          <!-- </div>--></h1>
           <div id="registerData" style="height: 250px;width:820px;margin: 0 auto;"></div>
	   </div>
	   <div class="dataMain dataTrend" style="">
           <h1>用户数量
           <!--<div class="selectTime">-->
	           	<span class="timerf">时间范围</span>
	           	<input type="text" placeholder="2016-05-09" onclick="laydate()" readonly="readonly" ms-duplex="startDate1" class="ipt">
	           	<span>至</span>
	           	<input type="text" placeholder="2016-05-09" onclick="laydate()" readonly="readonly" ms-duplex="endDate1" class="ipt">
	           	<button ms-click="listDay">查询</button>
           <!--</div>--></h1>
           <div id="userData" style="height: 250px;width:820px;margin: 0 auto;"></div>
	   </div>
   </div>
   
   <div class="dataContent ms-tabs" id="tab1" ms-if="currentIndex === 1">
   		<div class="dataContentTop">
   			<h2 class="dailyNum">每日注册数量</h2>
   			<button class="btn btnBefore" ms-click="pre1">前一天</button>
   			<input type="text" placeholder="2016-05-09" class="ipt" onclick="laydate()" class="inputSize" readonly="readonly" ms-duplex="regToday" data-duplex-changed="textCount">
   			<button class="btn btnAfter" ms-click="next1">后一天</button>
   			<table class="table">
   				<thead>
   					<tr>
   						<th>应用名称</th>
   						<th>注册次数</th>
   					</tr>
   				</thead>
   				<tbody>
   					<tr>
   						<td>Android</td>
   						<td>{{androidCount}}</td>
   					</tr>
   					<tr>
   						<td>Iphone</td>
   						<td>{{iosCount}}</td>
   					</tr>
   					<tr>
   						<td>总计</td>
   						<td>{{bothCount}}</td>
   					</tr>
   				</tbody>
   			</table>
   		</div>
   		<div class="dataMai dataTrend" style="">
           <h2>注册趋势</h2>
           <div class="selectTime">
           	<span>时间范围</span>
           	<input type="text" placeholder="2016-05-09" onclick="laydate()"  readonly="readonly" ms-duplex="startDate2">
           	<span>至</span>
           	<input type="text" placeholder="2016-05-09" onclick="laydate()"  readonly="readonly" ms-duplex="endDate2">
           	<button ms-click="userList">查询</button>
           </div>
           <div id="tendency" style="height: 250px;width:800px;"></div>
	    </div>
   </div>
   <div class="dataContent ms-tabs" id="tab2" ms-if="currentIndex === 2">
   		<div class="dataContentTop">
   			<h2>每日每户使用数量</h2>
   			<button class="btn btnBefore" ms-click="pre">前一天</button>
   			<input type="text" placeholder="2016-05-09" onclick="laydate()" class="inputSize ipt" readonly="readonly" ms-duplex="regToday1" data-duplex-changed="textCount">
   			<button class="btn btnAfter" ms-click="next">后一天</button>
   			
   			<table class="table">
   				<thead>
   					<tr>
   						<th>应用名称</th>
   						<th>注册次数</th>
   					</tr>
   				</thead>
   				<tbody>
   					<tr>
   						<td>Android</td>
   						<td>{{androidCount1}}</td>
   					</tr>
   					<tr>
   						<td>Iphone</td>
   						<td>{{iosCount1}}</td>
   					</tr>
   					<tr>
   						<td>总计</td>
   						<td>{{bothCount1}}</td>
   					</tr>
   				</tbody>
   			</table>
   		</div>
   		<div class="dataMai dataTrend" style="">
           <h2>注册趋势</h2>
           <div class="selectTime">
           	<span>时间范围</span>
           	<input type="text" placeholder="2016-05-09" class="ipt" onclick="laydate()" class="inputSize" readonly="readonly" ms-duplex="startDate3">
           	<span>至</span>
           	<input type="text" placeholder="2016-05-09" class="ipt" onclick="laydate()" class="inputSize" readonly="readonly" ms-duplex="endDate3">
           	<button ms-click="userDay">查询</button>
           </div>
           <div id="statistics" style="height: 250px;width:800px;"></div>
	    </div>
   </div>
	
</div>
 
